
import { Button, List, Input } from 'antd';

const APPUI = (props) => {
    return (
        <div style={{ width: '300px' }}>
            <Input placeholder="Basic usage" style={{ width: '200px' }} value={props.inpVal} onChange={props.ev_inputChange} />
            <Button type="primary" onClick={props.ev_submit}>提交</Button>
            <List
                bordered
                dataSource={props.list}
                renderItem={(item,index) => (
                    <List.Item onClick={props.ev_delete.bind(this,index)}>
                        {item}
                    </List.Item>
                )}
            />
        </div>
    )
}
export default APPUI